C# Class FSO.SimAntics.VMContext

Exibir arquivo Open project: RHY3756547/FreeSO Class Usage Examples

Public Properties

Property Type Description
Ambience FSO.SimAntics.Engine.VMAmbientSound
Blueprint FSO.LotView.Model.Blueprint
Globals GameGlobal
Primitives FSO.SimAntics.Engine.VMPrimitiveRegistration[]
RandomSeed ulong
RoomInfo FSO.SimAntics.Model.VMRoomInfo[]
SetToNextCache FSO.SimAntics.Model.VMSetToNextCache
UseWorld bool
VM VM

Public Methods

Method Description
AddPrimitive ( FSO.SimAntics.Engine.VMPrimitiveRegistration primitive ) : void
AddRoomPortal ( FSO.SimAntics.VMEntity obj, ushort room ) : void
CheckFloorValid ( FSO.LotView.Model.LotTilePos pos, FSO.LotView.Model.FloorTile floor ) : bool
CheckWallValid ( FSO.LotView.Model.LotTilePos pos, FSO.LotView.Model.WallTile wall ) : bool
CreateObjectInstance ( UInt32 GUID, FSO.LotView.Model.LotTilePos pos, Direction direction ) : FSO.SimAntics.Entities.VMMultitileGroup
CreateObjectInstance ( UInt32 GUID, FSO.LotView.Model.LotTilePos pos, Direction direction, bool ghostImage ) : FSO.SimAntics.Entities.VMMultitileGroup
CreateObjectInstance ( UInt32 GUID, FSO.LotView.Model.LotTilePos pos, Direction direction, short MainStackOBJ, short MainParam, bool ghostImage ) : FSO.SimAntics.Entities.VMMultitileGroup
GetAvatarPlace ( FSO.SimAntics.VMEntity target, FSO.LotView.Model.LotTilePos pos, Direction dir ) : VMPlacementResult
GetObjPlace ( FSO.SimAntics.VMEntity target, FSO.LotView.Model.LotTilePos pos, Direction dir ) : VMPlacementResult
GetObjectRoom ( FSO.SimAntics.VMEntity obj ) : ushort
GetRoomAt ( FSO.LotView.Model.LotTilePos pos ) : ushort
GhostCopyGroup ( FSO.SimAntics.Entities.VMMultitileGroup group ) : FSO.SimAntics.Entities.VMMultitileGroup
IsOutOfBounds ( FSO.LotView.Model.LotTilePos pos ) : bool
Load ( VMContextMarshal input ) : void
NextRandom ( ulong max ) : ulong

Returns a random number between 0 and less than the specified maximum.

RefreshLighting ( ushort room, bool commit ) : void
RegeneratePortalInfo ( ) : void
RegisterObjectPos ( FSO.SimAntics.VMEntity obj ) : void
RemoveObjectInstance ( FSO.SimAntics.VMEntity target ) : void
RemoveRoomPortal ( FSO.SimAntics.VMEntity obj, ushort room ) : void
Save ( ) : VMContextMarshal
SolidToAvatars ( FSO.LotView.Model.LotTilePos pos ) : VMSolidResult
UnregisterObjectPos ( FSO.SimAntics.VMEntity obj ) : void
VMContext ( LotView world ) : System
VMContext ( LotView world, VMContext oldContext ) : System
VMContext ( VMContextMarshal input, VMContext oldContext ) : System

Private Methods

Method Description
WallsChanged ( VMArchitecture caller ) : void

Method Details

AddPrimitive() public method

public AddPrimitive ( FSO.SimAntics.Engine.VMPrimitiveRegistration primitive ) : void
primitive FSO.SimAntics.Engine.VMPrimitiveRegistration
return void

AddRoomPortal() public method

public AddRoomPortal ( FSO.SimAntics.VMEntity obj, ushort room ) : void
obj FSO.SimAntics.VMEntity
room ushort
return void

CheckFloorValid() public method

public CheckFloorValid ( FSO.LotView.Model.LotTilePos pos, FSO.LotView.Model.FloorTile floor ) : bool
pos FSO.LotView.Model.LotTilePos
floor FSO.LotView.Model.FloorTile
return bool

CheckWallValid() public method

public CheckWallValid ( FSO.LotView.Model.LotTilePos pos, FSO.LotView.Model.WallTile wall ) : bool
pos FSO.LotView.Model.LotTilePos
wall FSO.LotView.Model.WallTile
return bool

CreateObjectInstance() public method

public CreateObjectInstance ( UInt32 GUID, FSO.LotView.Model.LotTilePos pos, Direction direction ) : FSO.SimAntics.Entities.VMMultitileGroup
GUID System.UInt32
pos FSO.LotView.Model.LotTilePos
direction Direction
return FSO.SimAntics.Entities.VMMultitileGroup

CreateObjectInstance() public method

public CreateObjectInstance ( UInt32 GUID, FSO.LotView.Model.LotTilePos pos, Direction direction, bool ghostImage ) : FSO.SimAntics.Entities.VMMultitileGroup
GUID System.UInt32
pos FSO.LotView.Model.LotTilePos
direction Direction
ghostImage bool
return FSO.SimAntics.Entities.VMMultitileGroup

CreateObjectInstance() public method

public CreateObjectInstance ( UInt32 GUID, FSO.LotView.Model.LotTilePos pos, Direction direction, short MainStackOBJ, short MainParam, bool ghostImage ) : FSO.SimAntics.Entities.VMMultitileGroup
GUID System.UInt32
pos FSO.LotView.Model.LotTilePos
direction Direction
MainStackOBJ short
MainParam short
ghostImage bool
return FSO.SimAntics.Entities.VMMultitileGroup

GetAvatarPlace() public method

public GetAvatarPlace ( FSO.SimAntics.VMEntity target, FSO.LotView.Model.LotTilePos pos, Direction dir ) : VMPlacementResult
target FSO.SimAntics.VMEntity
pos FSO.LotView.Model.LotTilePos
dir Direction
return VMPlacementResult

GetObjPlace() public method

public GetObjPlace ( FSO.SimAntics.VMEntity target, FSO.LotView.Model.LotTilePos pos, Direction dir ) : VMPlacementResult
target FSO.SimAntics.VMEntity
pos FSO.LotView.Model.LotTilePos
dir Direction
return VMPlacementResult

GetObjectRoom() public method

public GetObjectRoom ( FSO.SimAntics.VMEntity obj ) : ushort
obj FSO.SimAntics.VMEntity
return ushort

GetRoomAt() public method

public GetRoomAt ( FSO.LotView.Model.LotTilePos pos ) : ushort
pos FSO.LotView.Model.LotTilePos
return ushort

GhostCopyGroup() public method

public GhostCopyGroup ( FSO.SimAntics.Entities.VMMultitileGroup group ) : FSO.SimAntics.Entities.VMMultitileGroup
group FSO.SimAntics.Entities.VMMultitileGroup
return FSO.SimAntics.Entities.VMMultitileGroup

IsOutOfBounds() public method

public IsOutOfBounds ( FSO.LotView.Model.LotTilePos pos ) : bool
pos FSO.LotView.Model.LotTilePos
return bool

Load() public method

public Load ( VMContextMarshal input ) : void
input FSO.SimAntics.Marshals.VMContextMarshal
return void

NextRandom() public method

Returns a random number between 0 and less than the specified maximum.
public NextRandom ( ulong max ) : ulong
max ulong The upper bound of the random number.
return ulong

RefreshLighting() public method

public RefreshLighting ( ushort room, bool commit ) : void
room ushort
commit bool
return void

RegeneratePortalInfo() public method

public RegeneratePortalInfo ( ) : void
return void

RegisterObjectPos() public method

public RegisterObjectPos ( FSO.SimAntics.VMEntity obj ) : void
obj FSO.SimAntics.VMEntity
return void

RemoveObjectInstance() public method

public RemoveObjectInstance ( FSO.SimAntics.VMEntity target ) : void
target FSO.SimAntics.VMEntity
return void

RemoveRoomPortal() public method

public RemoveRoomPortal ( FSO.SimAntics.VMEntity obj, ushort room ) : void
obj FSO.SimAntics.VMEntity
room ushort
return void

Save() public method

public Save ( ) : VMContextMarshal
return FSO.SimAntics.Marshals.VMContextMarshal

SolidToAvatars() public method

public SolidToAvatars ( FSO.LotView.Model.LotTilePos pos ) : VMSolidResult
pos FSO.LotView.Model.LotTilePos
return VMSolidResult

UnregisterObjectPos() public method

public UnregisterObjectPos ( FSO.SimAntics.VMEntity obj ) : void
obj FSO.SimAntics.VMEntity
return void

VMContext() public method

public VMContext ( LotView world ) : System
world LotView
return System

VMContext() public method

public VMContext ( LotView world, VMContext oldContext ) : System
world LotView
oldContext VMContext
return System

VMContext() public method

public VMContext ( VMContextMarshal input, VMContext oldContext ) : System
input FSO.SimAntics.Marshals.VMContextMarshal
oldContext VMContext
return System

Property Details

Ambience public_oe property

public VMAmbientSound,FSO.SimAntics.Engine Ambience
return FSO.SimAntics.Engine.VMAmbientSound

Blueprint public_oe property

public Blueprint,FSO.LotView.Model Blueprint
return FSO.LotView.Model.Blueprint

Globals public_oe property

public GameGlobal Globals
return GameGlobal

Primitives public_oe property

public VMPrimitiveRegistration[],FSO.SimAntics.Engine Primitives
return FSO.SimAntics.Engine.VMPrimitiveRegistration[]

RandomSeed public_oe property

public ulong RandomSeed
return ulong

RoomInfo public_oe property

public VMRoomInfo[],FSO.SimAntics.Model RoomInfo
return FSO.SimAntics.Model.VMRoomInfo[]

SetToNextCache public_oe property

public VMSetToNextCache,FSO.SimAntics.Model SetToNextCache
return FSO.SimAntics.Model.VMSetToNextCache

UseWorld public_oe static_oe property

public static bool UseWorld
return bool

VM public_oe property

public VM,FSO.SimAntics VM
return VM