C# Class Asgard.Core.System.ObjectMapper

Exibir arquivo Open project: enBask/Asgard

Public Methods

Method Description
Create ( uint id, Type type ) : NetworkObject
Create ( uint id, ushort typeId ) : NetworkObject
CreateEntity ( uint id ) : Entity
CreateEntityById ( uint id ) : Entity
DefineObject ( object obj, long entityId ) : void
DestroyEntity ( Entity ent, bool destoryEntity = true ) : void
DestroyNetObject ( Entity ent, NetworkObject netObj ) : void
EndSnapshot ( ) : NetworkObject>>.List
Lookup ( long id, ushort typeId, bool snapshot = true ) : NetworkObject
StartSnapshot ( ) : void

Private Methods

Method Description
AddDeltaState ( int objHash, uint tickId, NetworkObject obj ) : void
AddRawType ( TypeInfo type ) : void
GetBaseline ( uint baselineId, int objHash ) : NetworkObject
GetCurrentPlayerState ( uint id ) : PlayerStateData
GetEntityCache ( ) : IEnumerable
GetLastSimId ( ) : uint
GetNetObjects ( Entity entity, Type type ) : List
Init ( AsgardBase instance ) : void
LookupType ( ushort id ) : Type
LookupType ( Type type ) : ushort
SetCurrentPlayerState ( uint id, PlayerStateData data ) : void
UnDefineObject ( object obj, long entityId ) : void

Method Details

Create() public static method

public static Create ( uint id, Type type ) : NetworkObject
id uint
type System.Type
return NetworkObject

Create() public static method

public static Create ( uint id, ushort typeId ) : NetworkObject
id uint
typeId ushort
return NetworkObject

CreateEntity() public static method

public static CreateEntity ( uint id ) : Entity
id uint
return Entity

CreateEntityById() public static method

public static CreateEntityById ( uint id ) : Entity
id uint
return Entity

DefineObject() public static method

public static DefineObject ( object obj, long entityId ) : void
obj object
entityId long
return void

DestroyEntity() public static method

public static DestroyEntity ( Entity ent, bool destoryEntity = true ) : void
ent Entity
destoryEntity bool
return void

DestroyNetObject() public static method

public static DestroyNetObject ( Entity ent, NetworkObject netObj ) : void
ent Entity
netObj NetworkObject
return void

EndSnapshot() public static method

public static EndSnapshot ( ) : NetworkObject>>.List
return NetworkObject>>.List

Lookup() public static method

public static Lookup ( long id, ushort typeId, bool snapshot = true ) : NetworkObject
id long
typeId ushort
snapshot bool
return NetworkObject

StartSnapshot() public static method

public static StartSnapshot ( ) : void
return void