TinyLifeWeb/docs/api/TinyLife.SerializerContext.yml
2024-10-17 17:28:12 +02:00

425 lines
15 KiB
YAML
Generated

### YamlMime:ManagedReference
items:
- uid: TinyLife.SerializerContext
commentId: T:TinyLife.SerializerContext
id: SerializerContext
parent: TinyLife
children:
- TinyLife.SerializerContext.Copy
- TinyLife.SerializerContext.CustomContent
- TinyLife.SerializerContext.Debug
- TinyLife.SerializerContext.GameSave
- TinyLife.SerializerContext.MetaFile
- TinyLife.SerializerContext.Preview
langs:
- csharp
- vb
name: SerializerContext
nameWithType: SerializerContext
fullName: TinyLife.SerializerContext
type: Enum
assemblies:
- Tiny Life
namespace: TinyLife
summary: >-
A set of contexts that a <xref href="Newtonsoft.Json.JsonSerializer" data-throw-if-not-resolved="false"></xref> can be used in.
When a serializer is created using <xref href="TinyLife.SaveHandler.CreateSerializer(TinyLife.SerializerContext%2cSystem.EventHandler%7bNewtonsoft.Json.Serialization.ErrorEventArgs%7d%2cSystem.Boolean)" data-throw-if-not-resolved="false"></xref> or <xref href="TinyLife.SaveHandler.CreateSerializerSettings(TinyLife.SerializerContext%2cSystem.EventHandler%7bNewtonsoft.Json.Serialization.ErrorEventArgs%7d%2cSystem.Boolean)" data-throw-if-not-resolved="false"></xref>, a context needs to be passed.
example: []
syntax:
content: public enum SerializerContext
content.vb: Public Enum SerializerContext
extensionMethods:
- TinyLife.SerializerContext.TinyLife.Utilities.Extensions.JsonCopy``1
- uid: TinyLife.SerializerContext.MetaFile
commentId: F:TinyLife.SerializerContext.MetaFile
id: MetaFile
parent: TinyLife.SerializerContext
langs:
- csharp
- vb
name: MetaFile
nameWithType: SerializerContext.MetaFile
fullName: TinyLife.SerializerContext.MetaFile
type: Field
assemblies:
- Tiny Life
namespace: TinyLife
summary: A meta file, like the game's options, is being loaded or saved.
example: []
syntax:
content: MetaFile = 0
return:
type: TinyLife.SerializerContext
- uid: TinyLife.SerializerContext.GameSave
commentId: F:TinyLife.SerializerContext.GameSave
id: GameSave
parent: TinyLife.SerializerContext
langs:
- csharp
- vb
name: GameSave
nameWithType: SerializerContext.GameSave
fullName: TinyLife.SerializerContext.GameSave
type: Field
assemblies:
- Tiny Life
namespace: TinyLife
summary: A game save is being loaded or saved.
example: []
syntax:
content: GameSave = 1
return:
type: TinyLife.SerializerContext
- uid: TinyLife.SerializerContext.Debug
commentId: F:TinyLife.SerializerContext.Debug
id: Debug
parent: TinyLife.SerializerContext
langs:
- csharp
- vb
name: Debug
nameWithType: SerializerContext.Debug
fullName: TinyLife.SerializerContext.Debug
type: Field
assemblies:
- Tiny Life
namespace: TinyLife
summary: A debug action, like a cheat, that involves saving and loading, is being executed.
example: []
syntax:
content: Debug = 2
return:
type: TinyLife.SerializerContext
- uid: TinyLife.SerializerContext.CustomContent
commentId: F:TinyLife.SerializerContext.CustomContent
id: CustomContent
parent: TinyLife.SerializerContext
langs:
- csharp
- vb
name: CustomContent
nameWithType: SerializerContext.CustomContent
fullName: TinyLife.SerializerContext.CustomContent
type: Field
assemblies:
- Tiny Life
namespace: TinyLife
summary: A custom content file is being loaded or saved.
example: []
syntax:
content: CustomContent = 3
return:
type: TinyLife.SerializerContext
- uid: TinyLife.SerializerContext.Copy
commentId: F:TinyLife.SerializerContext.Copy
id: Copy
parent: TinyLife.SerializerContext
langs:
- csharp
- vb
name: Copy
nameWithType: SerializerContext.Copy
fullName: TinyLife.SerializerContext.Copy
type: Field
assemblies:
- Tiny Life
namespace: TinyLife
summary: An item is copied using <xref href="TinyLife.Utilities.Extensions.JsonCopy%60%601(%60%600)" data-throw-if-not-resolved="false"></xref>.
example: []
syntax:
content: Copy = 4
return:
type: TinyLife.SerializerContext
- uid: TinyLife.SerializerContext.Preview
commentId: F:TinyLife.SerializerContext.Preview
id: Preview
parent: TinyLife.SerializerContext
langs:
- csharp
- vb
name: Preview
nameWithType: SerializerContext.Preview
fullName: TinyLife.SerializerContext.Preview
type: Field
assemblies:
- Tiny Life
namespace: TinyLife
summary: An item is loaded only for preview, ie usually in a shallow context and not for actual use.
example: []
syntax:
content: Preview = 5
return:
type: TinyLife.SerializerContext
references:
- uid: Newtonsoft.Json.JsonSerializer
commentId: T:Newtonsoft.Json.JsonSerializer
parent: Newtonsoft.Json
isExternal: true
name: JsonSerializer
nameWithType: JsonSerializer
fullName: Newtonsoft.Json.JsonSerializer
- uid: TinyLife.SaveHandler.CreateSerializer(TinyLife.SerializerContext,System.EventHandler{Newtonsoft.Json.Serialization.ErrorEventArgs},System.Boolean)
commentId: M:TinyLife.SaveHandler.CreateSerializer(TinyLife.SerializerContext,System.EventHandler{Newtonsoft.Json.Serialization.ErrorEventArgs},System.Boolean)
isExternal: true
href: TinyLife.SaveHandler.html#TinyLife_SaveHandler_CreateSerializer_TinyLife_SerializerContext_System_EventHandler_Newtonsoft_Json_Serialization_ErrorEventArgs__System_Boolean_
name: CreateSerializer(SerializerContext, EventHandler<ErrorEventArgs>, bool)
nameWithType: SaveHandler.CreateSerializer(SerializerContext, EventHandler<ErrorEventArgs>, bool)
fullName: TinyLife.SaveHandler.CreateSerializer(TinyLife.SerializerContext, System.EventHandler<Newtonsoft.Json.Serialization.ErrorEventArgs>, bool)
nameWithType.vb: SaveHandler.CreateSerializer(SerializerContext, EventHandler(Of ErrorEventArgs), Boolean)
fullName.vb: TinyLife.SaveHandler.CreateSerializer(TinyLife.SerializerContext, System.EventHandler(Of Newtonsoft.Json.Serialization.ErrorEventArgs), Boolean)
name.vb: CreateSerializer(SerializerContext, EventHandler(Of ErrorEventArgs), Boolean)
spec.csharp:
- uid: TinyLife.SaveHandler.CreateSerializer(TinyLife.SerializerContext,System.EventHandler{Newtonsoft.Json.Serialization.ErrorEventArgs},System.Boolean)
name: CreateSerializer
href: TinyLife.SaveHandler.html#TinyLife_SaveHandler_CreateSerializer_TinyLife_SerializerContext_System_EventHandler_Newtonsoft_Json_Serialization_ErrorEventArgs__System_Boolean_
- name: (
- uid: TinyLife.SerializerContext
name: SerializerContext
href: TinyLife.SerializerContext.html
- name: ','
- name: " "
- uid: System.EventHandler`1
name: EventHandler
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.eventhandler-1
- name: <
- uid: Newtonsoft.Json.Serialization.ErrorEventArgs
name: ErrorEventArgs
isExternal: true
- name: '>'
- name: ','
- name: " "
- uid: System.Boolean
name: bool
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.boolean
- name: )
spec.vb:
- uid: TinyLife.SaveHandler.CreateSerializer(TinyLife.SerializerContext,System.EventHandler{Newtonsoft.Json.Serialization.ErrorEventArgs},System.Boolean)
name: CreateSerializer
href: TinyLife.SaveHandler.html#TinyLife_SaveHandler_CreateSerializer_TinyLife_SerializerContext_System_EventHandler_Newtonsoft_Json_Serialization_ErrorEventArgs__System_Boolean_
- name: (
- uid: TinyLife.SerializerContext
name: SerializerContext
href: TinyLife.SerializerContext.html
- name: ','
- name: " "
- uid: System.EventHandler`1
name: EventHandler
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.eventhandler-1
- name: (
- name: Of
- name: " "
- uid: Newtonsoft.Json.Serialization.ErrorEventArgs
name: ErrorEventArgs
isExternal: true
- name: )
- name: ','
- name: " "
- uid: System.Boolean
name: Boolean
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.boolean
- name: )
- uid: TinyLife.SaveHandler.CreateSerializerSettings(TinyLife.SerializerContext,System.EventHandler{Newtonsoft.Json.Serialization.ErrorEventArgs},System.Boolean)
commentId: M:TinyLife.SaveHandler.CreateSerializerSettings(TinyLife.SerializerContext,System.EventHandler{Newtonsoft.Json.Serialization.ErrorEventArgs},System.Boolean)
isExternal: true
href: TinyLife.SaveHandler.html#TinyLife_SaveHandler_CreateSerializerSettings_TinyLife_SerializerContext_System_EventHandler_Newtonsoft_Json_Serialization_ErrorEventArgs__System_Boolean_
name: CreateSerializerSettings(SerializerContext, EventHandler<ErrorEventArgs>, bool)
nameWithType: SaveHandler.CreateSerializerSettings(SerializerContext, EventHandler<ErrorEventArgs>, bool)
fullName: TinyLife.SaveHandler.CreateSerializerSettings(TinyLife.SerializerContext, System.EventHandler<Newtonsoft.Json.Serialization.ErrorEventArgs>, bool)
nameWithType.vb: SaveHandler.CreateSerializerSettings(SerializerContext, EventHandler(Of ErrorEventArgs), Boolean)
fullName.vb: TinyLife.SaveHandler.CreateSerializerSettings(TinyLife.SerializerContext, System.EventHandler(Of Newtonsoft.Json.Serialization.ErrorEventArgs), Boolean)
name.vb: CreateSerializerSettings(SerializerContext, EventHandler(Of ErrorEventArgs), Boolean)
spec.csharp:
- uid: TinyLife.SaveHandler.CreateSerializerSettings(TinyLife.SerializerContext,System.EventHandler{Newtonsoft.Json.Serialization.ErrorEventArgs},System.Boolean)
name: CreateSerializerSettings
href: TinyLife.SaveHandler.html#TinyLife_SaveHandler_CreateSerializerSettings_TinyLife_SerializerContext_System_EventHandler_Newtonsoft_Json_Serialization_ErrorEventArgs__System_Boolean_
- name: (
- uid: TinyLife.SerializerContext
name: SerializerContext
href: TinyLife.SerializerContext.html
- name: ','
- name: " "
- uid: System.EventHandler`1
name: EventHandler
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.eventhandler-1
- name: <
- uid: Newtonsoft.Json.Serialization.ErrorEventArgs
name: ErrorEventArgs
isExternal: true
- name: '>'
- name: ','
- name: " "
- uid: System.Boolean
name: bool
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.boolean
- name: )
spec.vb:
- uid: TinyLife.SaveHandler.CreateSerializerSettings(TinyLife.SerializerContext,System.EventHandler{Newtonsoft.Json.Serialization.ErrorEventArgs},System.Boolean)
name: CreateSerializerSettings
href: TinyLife.SaveHandler.html#TinyLife_SaveHandler_CreateSerializerSettings_TinyLife_SerializerContext_System_EventHandler_Newtonsoft_Json_Serialization_ErrorEventArgs__System_Boolean_
- name: (
- uid: TinyLife.SerializerContext
name: SerializerContext
href: TinyLife.SerializerContext.html
- name: ','
- name: " "
- uid: System.EventHandler`1
name: EventHandler
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.eventhandler-1
- name: (
- name: Of
- name: " "
- uid: Newtonsoft.Json.Serialization.ErrorEventArgs
name: ErrorEventArgs
isExternal: true
- name: )
- name: ','
- name: " "
- uid: System.Boolean
name: Boolean
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.boolean
- name: )
- uid: TinyLife
commentId: N:TinyLife
href: TinyLife.html
name: TinyLife
nameWithType: TinyLife
fullName: TinyLife
- uid: TinyLife.SerializerContext.TinyLife.Utilities.Extensions.JsonCopy``1
commentId: M:TinyLife.Utilities.Extensions.JsonCopy``1(``0)
parent: TinyLife.Utilities.Extensions
definition: TinyLife.Utilities.Extensions.JsonCopy``1(``0)
href: TinyLife.Utilities.Extensions.html#TinyLife_Utilities_Extensions_JsonCopy__1___0_
name: JsonCopy<SerializerContext>(SerializerContext)
nameWithType: Extensions.JsonCopy<SerializerContext>(SerializerContext)
fullName: TinyLife.Utilities.Extensions.JsonCopy<TinyLife.SerializerContext>(TinyLife.SerializerContext)
nameWithType.vb: Extensions.JsonCopy(Of SerializerContext)(SerializerContext)
fullName.vb: TinyLife.Utilities.Extensions.JsonCopy(Of TinyLife.SerializerContext)(TinyLife.SerializerContext)
name.vb: JsonCopy(Of SerializerContext)(SerializerContext)
spec.csharp:
- uid: TinyLife.Utilities.Extensions.JsonCopy``1(TinyLife.SerializerContext)
name: JsonCopy
href: TinyLife.Utilities.Extensions.html#TinyLife_Utilities_Extensions_JsonCopy__1___0_
- name: <
- uid: TinyLife.SerializerContext
name: SerializerContext
href: TinyLife.SerializerContext.html
- name: '>'
- name: (
- uid: TinyLife.SerializerContext
name: SerializerContext
href: TinyLife.SerializerContext.html
- name: )
spec.vb:
- uid: TinyLife.Utilities.Extensions.JsonCopy``1(TinyLife.SerializerContext)
name: JsonCopy
href: TinyLife.Utilities.Extensions.html#TinyLife_Utilities_Extensions_JsonCopy__1___0_
- name: (
- name: Of
- name: " "
- uid: TinyLife.SerializerContext
name: SerializerContext
href: TinyLife.SerializerContext.html
- name: )
- name: (
- uid: TinyLife.SerializerContext
name: SerializerContext
href: TinyLife.SerializerContext.html
- name: )
- uid: Newtonsoft.Json
commentId: N:Newtonsoft.Json
isExternal: true
name: Newtonsoft.Json
nameWithType: Newtonsoft.Json
fullName: Newtonsoft.Json
spec.csharp:
- uid: Newtonsoft
name: Newtonsoft
isExternal: true
- name: .
- uid: Newtonsoft.Json
name: Json
isExternal: true
spec.vb:
- uid: Newtonsoft
name: Newtonsoft
isExternal: true
- name: .
- uid: Newtonsoft.Json
name: Json
isExternal: true
- uid: TinyLife.Utilities.Extensions.JsonCopy``1(``0)
commentId: M:TinyLife.Utilities.Extensions.JsonCopy``1(``0)
href: TinyLife.Utilities.Extensions.html#TinyLife_Utilities_Extensions_JsonCopy__1___0_
name: JsonCopy<T>(T)
nameWithType: Extensions.JsonCopy<T>(T)
fullName: TinyLife.Utilities.Extensions.JsonCopy<T>(T)
nameWithType.vb: Extensions.JsonCopy(Of T)(T)
fullName.vb: TinyLife.Utilities.Extensions.JsonCopy(Of T)(T)
name.vb: JsonCopy(Of T)(T)
spec.csharp:
- uid: TinyLife.Utilities.Extensions.JsonCopy``1(``0)
name: JsonCopy
href: TinyLife.Utilities.Extensions.html#TinyLife_Utilities_Extensions_JsonCopy__1___0_
- name: <
- name: T
- name: '>'
- name: (
- name: T
- name: )
spec.vb:
- uid: TinyLife.Utilities.Extensions.JsonCopy``1(``0)
name: JsonCopy
href: TinyLife.Utilities.Extensions.html#TinyLife_Utilities_Extensions_JsonCopy__1___0_
- name: (
- name: Of
- name: " "
- name: T
- name: )
- name: (
- name: T
- name: )
- uid: TinyLife.Utilities.Extensions
commentId: T:TinyLife.Utilities.Extensions
parent: TinyLife.Utilities
href: TinyLife.Utilities.Extensions.html
name: Extensions
nameWithType: Extensions
fullName: TinyLife.Utilities.Extensions
- uid: TinyLife.Utilities
commentId: N:TinyLife.Utilities
href: TinyLife.html
name: TinyLife.Utilities
nameWithType: TinyLife.Utilities
fullName: TinyLife.Utilities
spec.csharp:
- uid: TinyLife
name: TinyLife
href: TinyLife.html
- name: .
- uid: TinyLife.Utilities
name: Utilities
href: TinyLife.Utilities.html
spec.vb:
- uid: TinyLife
name: TinyLife
href: TinyLife.html
- name: .
- uid: TinyLife.Utilities
name: Utilities
href: TinyLife.Utilities.html
- uid: TinyLife.SerializerContext
commentId: T:TinyLife.SerializerContext
parent: TinyLife
href: TinyLife.SerializerContext.html
name: SerializerContext
nameWithType: SerializerContext
fullName: TinyLife.SerializerContext