mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-11-23 03:38:34 +01:00
533 lines
17 KiB
YAML
533 lines
17 KiB
YAML
### YamlMime:ManagedReference
|
|
items:
|
|
- uid: TinyLife.Objects.PersonAi
|
|
commentId: T:TinyLife.Objects.PersonAi
|
|
id: PersonAi
|
|
parent: TinyLife.Objects
|
|
children:
|
|
- TinyLife.Objects.PersonAi.StartAutomatically(TinyLife.Objects.Person,TinyLife.Actions.ActionType,System.Boolean)
|
|
langs:
|
|
- csharp
|
|
- vb
|
|
name: PersonAi
|
|
nameWithType: PersonAi
|
|
fullName: TinyLife.Objects.PersonAi
|
|
type: Class
|
|
source:
|
|
remote:
|
|
path: TinyLife/Objects/PersonAi.cs
|
|
branch: main
|
|
repo: https://git.ellpeck.de/Ellpeck/TinyLife
|
|
id: PersonAi
|
|
path: ../TinyLife/Objects/PersonAi.cs
|
|
startLine: 15
|
|
assemblies:
|
|
- Tiny Life
|
|
namespace: TinyLife.Objects
|
|
summary: >-
|
|
This class holds the artificial intelligence implementation for a <xref href="TinyLife.Objects.Person" data-throw-if-not-resolved="false"></xref>.
|
|
|
|
The AI automatically selects actions based on their <xref href="TinyLife.Actions.ActionType.AiSettings" data-throw-if-not-resolved="false"></xref>.
|
|
example: []
|
|
syntax:
|
|
content: public class PersonAi
|
|
content.vb: Public Class PersonAi
|
|
inheritance:
|
|
- System.Object
|
|
inheritedMembers:
|
|
- System.Object.Equals(System.Object)
|
|
- System.Object.Equals(System.Object,System.Object)
|
|
- System.Object.GetHashCode
|
|
- System.Object.GetType
|
|
- System.Object.MemberwiseClone
|
|
- System.Object.ReferenceEquals(System.Object,System.Object)
|
|
- System.Object.ToString
|
|
extensionMethods:
|
|
- TinyLife.Objects.PersonAi.TinyLife.Utilities.Extensions.JsonCopy``1
|
|
- uid: TinyLife.Objects.PersonAi.StartAutomatically(TinyLife.Objects.Person,TinyLife.Actions.ActionType,System.Boolean)
|
|
commentId: M:TinyLife.Objects.PersonAi.StartAutomatically(TinyLife.Objects.Person,TinyLife.Actions.ActionType,System.Boolean)
|
|
id: StartAutomatically(TinyLife.Objects.Person,TinyLife.Actions.ActionType,System.Boolean)
|
|
parent: TinyLife.Objects.PersonAi
|
|
langs:
|
|
- csharp
|
|
- vb
|
|
name: StartAutomatically(Person, ActionType, bool)
|
|
nameWithType: PersonAi.StartAutomatically(Person, ActionType, bool)
|
|
fullName: TinyLife.Objects.PersonAi.StartAutomatically(TinyLife.Objects.Person, TinyLife.Actions.ActionType, bool)
|
|
type: Method
|
|
source:
|
|
remote:
|
|
path: TinyLife/Objects/PersonAi.cs
|
|
branch: main
|
|
repo: https://git.ellpeck.de/Ellpeck/TinyLife
|
|
id: StartAutomatically
|
|
path: ../TinyLife/Objects/PersonAi.cs
|
|
startLine: 135
|
|
assemblies:
|
|
- Tiny Life
|
|
namespace: TinyLife.Objects
|
|
summary: Causes a person to start the given action automatically with the same behavior that it would have if started by the <xref href="TinyLife.Objects.PersonAi" data-throw-if-not-resolved="false"></xref>
|
|
example: []
|
|
syntax:
|
|
content: public static bool StartAutomatically(Person person, ActionType type, bool priority = false)
|
|
parameters:
|
|
- id: person
|
|
type: TinyLife.Objects.Person
|
|
description: The person who should start the action
|
|
- id: type
|
|
type: TinyLife.Actions.ActionType
|
|
description: The action to start
|
|
- id: priority
|
|
type: System.Boolean
|
|
description: Whether to add this action to the start of the action queue rather than the end
|
|
return:
|
|
type: System.Boolean
|
|
description: Whether the action was successfully started
|
|
content.vb: Public Shared Function StartAutomatically(person As Person, type As ActionType, priority As Boolean = False) As Boolean
|
|
overload: TinyLife.Objects.PersonAi.StartAutomatically*
|
|
nameWithType.vb: PersonAi.StartAutomatically(Person, ActionType, Boolean)
|
|
fullName.vb: TinyLife.Objects.PersonAi.StartAutomatically(TinyLife.Objects.Person, TinyLife.Actions.ActionType, Boolean)
|
|
name.vb: StartAutomatically(Person, ActionType, Boolean)
|
|
references:
|
|
- uid: TinyLife.Objects.Person
|
|
commentId: T:TinyLife.Objects.Person
|
|
parent: TinyLife.Objects
|
|
href: TinyLife.Objects.Person.html
|
|
name: Person
|
|
nameWithType: Person
|
|
fullName: TinyLife.Objects.Person
|
|
- uid: TinyLife.Actions.ActionType.AiSettings
|
|
commentId: T:TinyLife.Actions.ActionType.AiSettings
|
|
parent: TinyLife.Actions
|
|
href: TinyLife.Actions.ActionType.html
|
|
name: ActionType.AiSettings
|
|
nameWithType: ActionType.AiSettings
|
|
fullName: TinyLife.Actions.ActionType.AiSettings
|
|
spec.csharp:
|
|
- uid: TinyLife.Actions.ActionType
|
|
name: ActionType
|
|
href: TinyLife.Actions.ActionType.html
|
|
- name: .
|
|
- uid: TinyLife.Actions.ActionType.AiSettings
|
|
name: AiSettings
|
|
href: TinyLife.Actions.ActionType.AiSettings.html
|
|
spec.vb:
|
|
- uid: TinyLife.Actions.ActionType
|
|
name: ActionType
|
|
href: TinyLife.Actions.ActionType.html
|
|
- name: .
|
|
- uid: TinyLife.Actions.ActionType.AiSettings
|
|
name: AiSettings
|
|
href: TinyLife.Actions.ActionType.AiSettings.html
|
|
- uid: TinyLife.Objects
|
|
commentId: N:TinyLife.Objects
|
|
href: TinyLife.html
|
|
name: TinyLife.Objects
|
|
nameWithType: TinyLife.Objects
|
|
fullName: TinyLife.Objects
|
|
spec.csharp:
|
|
- uid: TinyLife
|
|
name: TinyLife
|
|
href: TinyLife.html
|
|
- name: .
|
|
- uid: TinyLife.Objects
|
|
name: Objects
|
|
href: TinyLife.Objects.html
|
|
spec.vb:
|
|
- uid: TinyLife
|
|
name: TinyLife
|
|
href: TinyLife.html
|
|
- name: .
|
|
- uid: TinyLife.Objects
|
|
name: Objects
|
|
href: TinyLife.Objects.html
|
|
- uid: System.Object
|
|
commentId: T:System.Object
|
|
parent: System
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object
|
|
name: object
|
|
nameWithType: object
|
|
fullName: object
|
|
nameWithType.vb: Object
|
|
fullName.vb: Object
|
|
name.vb: Object
|
|
- uid: System.Object.Equals(System.Object)
|
|
commentId: M:System.Object.Equals(System.Object)
|
|
parent: System.Object
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
|
|
name: Equals(object)
|
|
nameWithType: object.Equals(object)
|
|
fullName: object.Equals(object)
|
|
nameWithType.vb: Object.Equals(Object)
|
|
fullName.vb: Object.Equals(Object)
|
|
name.vb: Equals(Object)
|
|
spec.csharp:
|
|
- uid: System.Object.Equals(System.Object)
|
|
name: Equals
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
|
|
- name: (
|
|
- uid: System.Object
|
|
name: object
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object
|
|
- name: )
|
|
spec.vb:
|
|
- uid: System.Object.Equals(System.Object)
|
|
name: Equals
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
|
|
- name: (
|
|
- uid: System.Object
|
|
name: Object
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object
|
|
- name: )
|
|
- uid: System.Object.Equals(System.Object,System.Object)
|
|
commentId: M:System.Object.Equals(System.Object,System.Object)
|
|
parent: System.Object
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
|
|
name: Equals(object, object)
|
|
nameWithType: object.Equals(object, object)
|
|
fullName: object.Equals(object, object)
|
|
nameWithType.vb: Object.Equals(Object, Object)
|
|
fullName.vb: Object.Equals(Object, Object)
|
|
name.vb: Equals(Object, Object)
|
|
spec.csharp:
|
|
- uid: System.Object.Equals(System.Object,System.Object)
|
|
name: Equals
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
|
|
- name: (
|
|
- uid: System.Object
|
|
name: object
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object
|
|
- name: ','
|
|
- name: " "
|
|
- uid: System.Object
|
|
name: object
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object
|
|
- name: )
|
|
spec.vb:
|
|
- uid: System.Object.Equals(System.Object,System.Object)
|
|
name: Equals
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
|
|
- name: (
|
|
- uid: System.Object
|
|
name: Object
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object
|
|
- name: ','
|
|
- name: " "
|
|
- uid: System.Object
|
|
name: Object
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object
|
|
- name: )
|
|
- uid: System.Object.GetHashCode
|
|
commentId: M:System.Object.GetHashCode
|
|
parent: System.Object
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
|
|
name: GetHashCode()
|
|
nameWithType: object.GetHashCode()
|
|
fullName: object.GetHashCode()
|
|
nameWithType.vb: Object.GetHashCode()
|
|
fullName.vb: Object.GetHashCode()
|
|
spec.csharp:
|
|
- uid: System.Object.GetHashCode
|
|
name: GetHashCode
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
|
|
- name: (
|
|
- name: )
|
|
spec.vb:
|
|
- uid: System.Object.GetHashCode
|
|
name: GetHashCode
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
|
|
- name: (
|
|
- name: )
|
|
- uid: System.Object.GetType
|
|
commentId: M:System.Object.GetType
|
|
parent: System.Object
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object.gettype
|
|
name: GetType()
|
|
nameWithType: object.GetType()
|
|
fullName: object.GetType()
|
|
nameWithType.vb: Object.GetType()
|
|
fullName.vb: Object.GetType()
|
|
spec.csharp:
|
|
- uid: System.Object.GetType
|
|
name: GetType
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object.gettype
|
|
- name: (
|
|
- name: )
|
|
spec.vb:
|
|
- uid: System.Object.GetType
|
|
name: GetType
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object.gettype
|
|
- name: (
|
|
- name: )
|
|
- uid: System.Object.MemberwiseClone
|
|
commentId: M:System.Object.MemberwiseClone
|
|
parent: System.Object
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
|
|
name: MemberwiseClone()
|
|
nameWithType: object.MemberwiseClone()
|
|
fullName: object.MemberwiseClone()
|
|
nameWithType.vb: Object.MemberwiseClone()
|
|
fullName.vb: Object.MemberwiseClone()
|
|
spec.csharp:
|
|
- uid: System.Object.MemberwiseClone
|
|
name: MemberwiseClone
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
|
|
- name: (
|
|
- name: )
|
|
spec.vb:
|
|
- uid: System.Object.MemberwiseClone
|
|
name: MemberwiseClone
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
|
|
- name: (
|
|
- name: )
|
|
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
|
|
commentId: M:System.Object.ReferenceEquals(System.Object,System.Object)
|
|
parent: System.Object
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
|
|
name: ReferenceEquals(object, object)
|
|
nameWithType: object.ReferenceEquals(object, object)
|
|
fullName: object.ReferenceEquals(object, object)
|
|
nameWithType.vb: Object.ReferenceEquals(Object, Object)
|
|
fullName.vb: Object.ReferenceEquals(Object, Object)
|
|
name.vb: ReferenceEquals(Object, Object)
|
|
spec.csharp:
|
|
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
|
|
name: ReferenceEquals
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
|
|
- name: (
|
|
- uid: System.Object
|
|
name: object
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object
|
|
- name: ','
|
|
- name: " "
|
|
- uid: System.Object
|
|
name: object
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object
|
|
- name: )
|
|
spec.vb:
|
|
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
|
|
name: ReferenceEquals
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
|
|
- name: (
|
|
- uid: System.Object
|
|
name: Object
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object
|
|
- name: ','
|
|
- name: " "
|
|
- uid: System.Object
|
|
name: Object
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object
|
|
- name: )
|
|
- uid: System.Object.ToString
|
|
commentId: M:System.Object.ToString
|
|
parent: System.Object
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object.tostring
|
|
name: ToString()
|
|
nameWithType: object.ToString()
|
|
fullName: object.ToString()
|
|
nameWithType.vb: Object.ToString()
|
|
fullName.vb: Object.ToString()
|
|
spec.csharp:
|
|
- uid: System.Object.ToString
|
|
name: ToString
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object.tostring
|
|
- name: (
|
|
- name: )
|
|
spec.vb:
|
|
- uid: System.Object.ToString
|
|
name: ToString
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.object.tostring
|
|
- name: (
|
|
- name: )
|
|
- uid: TinyLife.Objects.PersonAi.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<PersonAi>(PersonAi)
|
|
nameWithType: Extensions.JsonCopy<PersonAi>(PersonAi)
|
|
fullName: TinyLife.Utilities.Extensions.JsonCopy<TinyLife.Objects.PersonAi>(TinyLife.Objects.PersonAi)
|
|
nameWithType.vb: Extensions.JsonCopy(Of PersonAi)(PersonAi)
|
|
fullName.vb: TinyLife.Utilities.Extensions.JsonCopy(Of TinyLife.Objects.PersonAi)(TinyLife.Objects.PersonAi)
|
|
name.vb: JsonCopy(Of PersonAi)(PersonAi)
|
|
spec.csharp:
|
|
- uid: TinyLife.Utilities.Extensions.JsonCopy``1(TinyLife.Objects.PersonAi)
|
|
name: JsonCopy
|
|
href: TinyLife.Utilities.Extensions.html#TinyLife_Utilities_Extensions_JsonCopy__1___0_
|
|
- name: <
|
|
- uid: TinyLife.Objects.PersonAi
|
|
name: PersonAi
|
|
href: TinyLife.Objects.PersonAi.html
|
|
- name: '>'
|
|
- name: (
|
|
- uid: TinyLife.Objects.PersonAi
|
|
name: PersonAi
|
|
href: TinyLife.Objects.PersonAi.html
|
|
- name: )
|
|
spec.vb:
|
|
- uid: TinyLife.Utilities.Extensions.JsonCopy``1(TinyLife.Objects.PersonAi)
|
|
name: JsonCopy
|
|
href: TinyLife.Utilities.Extensions.html#TinyLife_Utilities_Extensions_JsonCopy__1___0_
|
|
- name: (
|
|
- name: Of
|
|
- name: " "
|
|
- uid: TinyLife.Objects.PersonAi
|
|
name: PersonAi
|
|
href: TinyLife.Objects.PersonAi.html
|
|
- name: )
|
|
- name: (
|
|
- uid: TinyLife.Objects.PersonAi
|
|
name: PersonAi
|
|
href: TinyLife.Objects.PersonAi.html
|
|
- name: )
|
|
- uid: TinyLife.Actions
|
|
commentId: N:TinyLife.Actions
|
|
href: TinyLife.html
|
|
name: TinyLife.Actions
|
|
nameWithType: TinyLife.Actions
|
|
fullName: TinyLife.Actions
|
|
spec.csharp:
|
|
- uid: TinyLife
|
|
name: TinyLife
|
|
href: TinyLife.html
|
|
- name: .
|
|
- uid: TinyLife.Actions
|
|
name: Actions
|
|
href: TinyLife.Actions.html
|
|
spec.vb:
|
|
- uid: TinyLife
|
|
name: TinyLife
|
|
href: TinyLife.html
|
|
- name: .
|
|
- uid: TinyLife.Actions
|
|
name: Actions
|
|
href: TinyLife.Actions.html
|
|
- uid: System
|
|
commentId: N:System
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system
|
|
name: System
|
|
nameWithType: System
|
|
fullName: System
|
|
- 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.Objects.PersonAi
|
|
commentId: T:TinyLife.Objects.PersonAi
|
|
href: TinyLife.Objects.PersonAi.html
|
|
name: PersonAi
|
|
nameWithType: PersonAi
|
|
fullName: TinyLife.Objects.PersonAi
|
|
- uid: TinyLife.Objects.PersonAi.StartAutomatically*
|
|
commentId: Overload:TinyLife.Objects.PersonAi.StartAutomatically
|
|
href: TinyLife.Objects.PersonAi.html#TinyLife_Objects_PersonAi_StartAutomatically_TinyLife_Objects_Person_TinyLife_Actions_ActionType_System_Boolean_
|
|
name: StartAutomatically
|
|
nameWithType: PersonAi.StartAutomatically
|
|
fullName: TinyLife.Objects.PersonAi.StartAutomatically
|
|
- uid: TinyLife.Actions.ActionType
|
|
commentId: T:TinyLife.Actions.ActionType
|
|
parent: TinyLife.Actions
|
|
href: TinyLife.Actions.ActionType.html
|
|
name: ActionType
|
|
nameWithType: ActionType
|
|
fullName: TinyLife.Actions.ActionType
|
|
- uid: System.Boolean
|
|
commentId: T:System.Boolean
|
|
parent: System
|
|
isExternal: true
|
|
href: https://learn.microsoft.com/dotnet/api/system.boolean
|
|
name: bool
|
|
nameWithType: bool
|
|
fullName: bool
|
|
nameWithType.vb: Boolean
|
|
fullName.vb: Boolean
|
|
name.vb: Boolean
|