TinyLifeWeb/docs/api/TinyLife.Objects.PersonAi.yml

496 lines
16 KiB
YAML
Raw Permalink Normal View History

2021-08-04 06:51:12 +02:00
### YamlMime:ManagedReference
items:
- uid: TinyLife.Objects.PersonAi
commentId: T:TinyLife.Objects.PersonAi
id: PersonAi
parent: TinyLife.Objects
2021-10-14 20:30:40 +02:00
children:
2023-04-27 18:53:16 +02:00
- TinyLife.Objects.PersonAi.StartAutomatically(TinyLife.Objects.Person,TinyLife.Actions.ActionType,System.Boolean)
2021-08-04 06:51:12 +02:00
langs:
- csharp
- vb
name: PersonAi
nameWithType: PersonAi
fullName: TinyLife.Objects.PersonAi
type: Class
source:
remote:
path: TinyLife/Objects/PersonAi.cs
2023-12-06 13:25:52 +01:00
branch: main
2021-11-26 23:42:22 +01:00
repo: https://git.ellpeck.de/Ellpeck/TinyLife
2021-08-04 06:51:12 +02:00
id: PersonAi
2022-03-09 16:13:05 +01:00
path: ../TinyLife/Objects/PersonAi.cs
2022-09-05 14:19:42 +02:00
startLine: 15
2021-08-04 06:51:12 +02:00
assemblies:
- Tiny Life
namespace: TinyLife.Objects
summary: "\nThis class holds the artificial intelligence implementation for a <xref href=\"TinyLife.Objects.Person\" data-throw-if-not-resolved=\"false\"></xref>.\nThe AI automatically selects actions based on their <xref href=\"TinyLife.Actions.ActionType.AiSettings\" data-throw-if-not-resolved=\"false\"></xref>.\n"
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
2023-04-27 18:53:16 +02:00
- 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)
2021-10-14 20:30:40 +02:00
parent: TinyLife.Objects.PersonAi
langs:
- csharp
- vb
2023-04-27 18:53:16 +02:00
name: StartAutomatically(Person, ActionType, bool)
nameWithType: PersonAi.StartAutomatically(Person, ActionType, bool)
fullName: TinyLife.Objects.PersonAi.StartAutomatically(TinyLife.Objects.Person, TinyLife.Actions.ActionType, bool)
2021-10-14 20:30:40 +02:00
type: Method
source:
remote:
path: TinyLife/Objects/PersonAi.cs
2023-12-06 13:25:52 +01:00
branch: main
2021-11-26 23:42:22 +01:00
repo: https://git.ellpeck.de/Ellpeck/TinyLife
2021-10-14 20:30:40 +02:00
id: StartAutomatically
2022-03-09 16:13:05 +01:00
path: ../TinyLife/Objects/PersonAi.cs
2023-10-11 16:05:32 +02:00
startLine: 135
2021-10-14 20:30:40 +02:00
assemblies:
- Tiny Life
namespace: TinyLife.Objects
summary: "\nCauses 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>\n"
example: []
syntax:
2023-04-27 18:53:16 +02:00
content: public static bool StartAutomatically(Person person, ActionType type, bool priority = false)
2021-10-14 20:30:40 +02:00
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
2023-04-27 18:53:16 +02:00
- id: priority
type: System.Boolean
description: Whether to add this action to the start of the action queue rather than the end
2021-10-14 20:30:40 +02:00
return:
type: System.Boolean
description: Whether the action was successfully started
2023-04-27 18:53:16 +02:00
content.vb: Public Shared Function StartAutomatically(person As Person, type As ActionType, priority As Boolean = False) As Boolean
2021-10-14 20:30:40 +02:00
overload: TinyLife.Objects.PersonAi.StartAutomatically*
2023-04-27 18:53:16 +02:00
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)
2021-08-04 06:51:12 +02:00
references:
- uid: TinyLife.Objects.Person
commentId: T:TinyLife.Objects.Person
parent: TinyLife.Objects
name: Person
nameWithType: Person
fullName: TinyLife.Objects.Person
- uid: TinyLife.Actions.ActionType.AiSettings
commentId: T:TinyLife.Actions.ActionType.AiSettings
parent: TinyLife.Actions
name: ActionType.AiSettings
nameWithType: ActionType.AiSettings
fullName: TinyLife.Actions.ActionType.AiSettings
2023-03-30 18:07:55 +02:00
spec.csharp:
- uid: TinyLife.Actions.ActionType
name: ActionType
- name: .
- uid: TinyLife.Actions.ActionType.AiSettings
name: AiSettings
spec.vb:
- uid: TinyLife.Actions.ActionType
name: ActionType
- name: .
- uid: TinyLife.Actions.ActionType.AiSettings
name: AiSettings
2021-08-04 06:51:12 +02:00
- uid: TinyLife.Objects
commentId: N:TinyLife.Objects
name: TinyLife.Objects
nameWithType: TinyLife.Objects
fullName: TinyLife.Objects
2023-03-30 18:07:55 +02:00
spec.csharp:
- uid: TinyLife
name: TinyLife
- name: .
- uid: TinyLife.Objects
name: Objects
spec.vb:
- uid: TinyLife
name: TinyLife
- name: .
- uid: TinyLife.Objects
name: Objects
2021-08-04 06:51:12 +02:00
- uid: System.Object
commentId: T:System.Object
parent: System
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object
name: object
nameWithType: object
fullName: object
nameWithType.vb: Object
fullName.vb: Object
name.vb: Object
2021-08-04 06:51:12 +02:00
- uid: System.Object.Equals(System.Object)
commentId: M:System.Object.Equals(System.Object)
parent: System.Object
isExternal: true
2023-03-30 18:07:55 +02:00
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)
2021-08-04 06:51:12 +02:00
spec.csharp:
- uid: System.Object.Equals(System.Object)
name: Equals
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
2021-08-04 06:51:12 +02:00
- name: (
- uid: System.Object
2023-03-30 18:07:55 +02:00
name: object
2021-08-04 06:51:12 +02:00
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object
2021-08-04 06:51:12 +02:00
- name: )
spec.vb:
- uid: System.Object.Equals(System.Object)
name: Equals
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
2021-08-04 06:51:12 +02:00
- name: (
- uid: System.Object
name: Object
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object
2021-08-04 06:51:12 +02:00
- name: )
- uid: System.Object.Equals(System.Object,System.Object)
commentId: M:System.Object.Equals(System.Object,System.Object)
parent: System.Object
isExternal: true
2023-03-30 18:07:55 +02:00
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)
2021-08-04 06:51:12 +02:00
spec.csharp:
- uid: System.Object.Equals(System.Object,System.Object)
name: Equals
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
2021-08-04 06:51:12 +02:00
- name: (
- uid: System.Object
2023-03-30 18:07:55 +02:00
name: object
2021-08-04 06:51:12 +02:00
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object
- name: ','
- name: " "
2021-08-04 06:51:12 +02:00
- uid: System.Object
2023-03-30 18:07:55 +02:00
name: object
2021-08-04 06:51:12 +02:00
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object
2021-08-04 06:51:12 +02:00
- name: )
spec.vb:
- uid: System.Object.Equals(System.Object,System.Object)
name: Equals
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
2021-08-04 06:51:12 +02:00
- name: (
- uid: System.Object
name: Object
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object
- name: ','
- name: " "
2021-08-04 06:51:12 +02:00
- uid: System.Object
name: Object
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object
2021-08-04 06:51:12 +02:00
- name: )
- uid: System.Object.GetHashCode
commentId: M:System.Object.GetHashCode
parent: System.Object
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
2021-08-04 06:51:12 +02:00
name: GetHashCode()
2023-03-30 18:07:55 +02:00
nameWithType: object.GetHashCode()
fullName: object.GetHashCode()
nameWithType.vb: Object.GetHashCode()
fullName.vb: Object.GetHashCode()
2021-08-04 06:51:12 +02:00
spec.csharp:
- uid: System.Object.GetHashCode
name: GetHashCode
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
2021-08-04 06:51:12 +02:00
- name: (
- name: )
spec.vb:
- uid: System.Object.GetHashCode
name: GetHashCode
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
2021-08-04 06:51:12 +02:00
- name: (
- name: )
- uid: System.Object.GetType
commentId: M:System.Object.GetType
parent: System.Object
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.gettype
2021-08-04 06:51:12 +02:00
name: GetType()
2023-03-30 18:07:55 +02:00
nameWithType: object.GetType()
fullName: object.GetType()
nameWithType.vb: Object.GetType()
fullName.vb: Object.GetType()
2021-08-04 06:51:12 +02:00
spec.csharp:
- uid: System.Object.GetType
name: GetType
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.gettype
2021-08-04 06:51:12 +02:00
- name: (
- name: )
spec.vb:
- uid: System.Object.GetType
name: GetType
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.gettype
2021-08-04 06:51:12 +02:00
- name: (
- name: )
- uid: System.Object.MemberwiseClone
commentId: M:System.Object.MemberwiseClone
parent: System.Object
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
2021-08-04 06:51:12 +02:00
name: MemberwiseClone()
2023-03-30 18:07:55 +02:00
nameWithType: object.MemberwiseClone()
fullName: object.MemberwiseClone()
nameWithType.vb: Object.MemberwiseClone()
fullName.vb: Object.MemberwiseClone()
2021-08-04 06:51:12 +02:00
spec.csharp:
- uid: System.Object.MemberwiseClone
name: MemberwiseClone
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
2021-08-04 06:51:12 +02:00
- name: (
- name: )
spec.vb:
- uid: System.Object.MemberwiseClone
name: MemberwiseClone
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
2021-08-04 06:51:12 +02:00
- name: (
- name: )
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
commentId: M:System.Object.ReferenceEquals(System.Object,System.Object)
parent: System.Object
isExternal: true
2023-03-30 18:07:55 +02:00
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)
2021-08-04 06:51:12 +02:00
spec.csharp:
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
name: ReferenceEquals
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
2021-08-04 06:51:12 +02:00
- name: (
- uid: System.Object
2023-03-30 18:07:55 +02:00
name: object
2021-08-04 06:51:12 +02:00
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object
- name: ','
- name: " "
2021-08-04 06:51:12 +02:00
- uid: System.Object
2023-03-30 18:07:55 +02:00
name: object
2021-08-04 06:51:12 +02:00
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object
2021-08-04 06:51:12 +02:00
- name: )
spec.vb:
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
name: ReferenceEquals
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
2021-08-04 06:51:12 +02:00
- name: (
- uid: System.Object
name: Object
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object
- name: ','
- name: " "
2021-08-04 06:51:12 +02:00
- uid: System.Object
name: Object
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object
2021-08-04 06:51:12 +02:00
- name: )
- uid: System.Object.ToString
commentId: M:System.Object.ToString
parent: System.Object
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.tostring
2021-08-04 06:51:12 +02:00
name: ToString()
2023-03-30 18:07:55 +02:00
nameWithType: object.ToString()
fullName: object.ToString()
nameWithType.vb: Object.ToString()
fullName.vb: Object.ToString()
2021-08-04 06:51:12 +02:00
spec.csharp:
- uid: System.Object.ToString
name: ToString
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.tostring
2021-08-04 06:51:12 +02:00
- name: (
- name: )
spec.vb:
- uid: System.Object.ToString
name: ToString
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.object.tostring
2021-08-04 06:51:12 +02:00
- 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)
2023-03-30 18:07:55 +02:00
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)
2021-08-04 06:51:12 +02:00
spec.csharp:
2023-03-30 18:07:55 +02:00
- uid: TinyLife.Utilities.Extensions.JsonCopy``1(TinyLife.Objects.PersonAi)
name: JsonCopy
- name: <
- uid: TinyLife.Objects.PersonAi
name: PersonAi
- name: '>'
2021-08-04 06:51:12 +02:00
- name: (
2023-03-30 18:07:55 +02:00
- uid: TinyLife.Objects.PersonAi
name: PersonAi
2021-08-04 06:51:12 +02:00
- name: )
spec.vb:
2023-03-30 18:07:55 +02:00
- uid: TinyLife.Utilities.Extensions.JsonCopy``1(TinyLife.Objects.PersonAi)
name: JsonCopy
2021-08-04 06:51:12 +02:00
- name: (
2023-03-30 18:07:55 +02:00
- name: Of
- name: " "
- uid: TinyLife.Objects.PersonAi
name: PersonAi
- name: )
- name: (
- uid: TinyLife.Objects.PersonAi
name: PersonAi
2021-08-04 06:51:12 +02:00
- name: )
- uid: TinyLife.Actions
commentId: N:TinyLife.Actions
name: TinyLife.Actions
nameWithType: TinyLife.Actions
fullName: TinyLife.Actions
2023-03-30 18:07:55 +02:00
spec.csharp:
- uid: TinyLife
name: TinyLife
- name: .
- uid: TinyLife.Actions
name: Actions
spec.vb:
- uid: TinyLife
name: TinyLife
- name: .
- uid: TinyLife.Actions
name: Actions
2021-08-04 06:51:12 +02:00
- uid: System
commentId: N:System
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system
2021-08-04 06:51:12 +02:00
name: System
nameWithType: System
fullName: System
- uid: TinyLife.Utilities.Extensions.JsonCopy``1(``0)
commentId: M: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)
2023-03-30 18:07:55 +02:00
name: JsonCopy
- name: <
- name: T
- name: '>'
2021-08-04 06:51:12 +02:00
- name: (
- name: T
- name: )
spec.vb:
- uid: TinyLife.Utilities.Extensions.JsonCopy``1(``0)
2023-03-30 18:07:55 +02:00
name: JsonCopy
- name: (
- name: Of
- name: " "
- name: T
- name: )
2021-08-04 06:51:12 +02:00
- name: (
- name: T
- name: )
- uid: TinyLife.Utilities.Extensions
commentId: T:TinyLife.Utilities.Extensions
parent: TinyLife.Utilities
name: Extensions
nameWithType: Extensions
fullName: TinyLife.Utilities.Extensions
- uid: TinyLife.Utilities
commentId: N:TinyLife.Utilities
name: TinyLife.Utilities
nameWithType: TinyLife.Utilities
fullName: TinyLife.Utilities
2023-03-30 18:07:55 +02:00
spec.csharp:
- uid: TinyLife
name: TinyLife
- name: .
- uid: TinyLife.Utilities
name: Utilities
spec.vb:
- uid: TinyLife
name: TinyLife
- name: .
- uid: TinyLife.Utilities
name: Utilities
2021-10-14 20:30:40 +02:00
- uid: TinyLife.Objects.PersonAi
commentId: T:TinyLife.Objects.PersonAi
name: PersonAi
nameWithType: PersonAi
fullName: TinyLife.Objects.PersonAi
- uid: TinyLife.Objects.PersonAi.StartAutomatically*
commentId: Overload:TinyLife.Objects.PersonAi.StartAutomatically
name: StartAutomatically
nameWithType: PersonAi.StartAutomatically
fullName: TinyLife.Objects.PersonAi.StartAutomatically
- uid: TinyLife.Actions.ActionType
commentId: T:TinyLife.Actions.ActionType
parent: TinyLife.Actions
name: ActionType
nameWithType: ActionType
fullName: TinyLife.Actions.ActionType
- uid: System.Boolean
commentId: T:System.Boolean
parent: System
isExternal: true
2023-03-30 18:07:55 +02:00
href: https://learn.microsoft.com/dotnet/api/system.boolean
name: bool
nameWithType: bool
fullName: bool
nameWithType.vb: Boolean
fullName.vb: Boolean
name.vb: Boolean