Show / Hide Table of Contents

Class PlantPack

Inheritance
System.Object
PlantPack
Implements
IStorage
ISerializable
Namespace: Eco.Simulation
Assembly: Eco.Simulation.dll
Syntax
public class PlantPack : Object, IStorage, ISerializable

Constructors

PlantPack(Vector2i, IPersistent)

Declaration
public PlantPack(Vector2i key, IPersistent storageHandle)
Parameters
Type Name Description
Vector2i key
IPersistent storageHandle

Properties

Key

Declaration
public Vector2i Key { get; set; }
Property Value
Type Description
Vector2i

Plants

Declaration
public ThreadSafeList<Plant> Plants { get; }
Property Value
Type Description
ThreadSafeList<Plant>

StorageHandle

Declaration
public IPersistent StorageHandle { get; set; }
Property Value
Type Description
IPersistent

Methods

Add(Plant)

Declaration
public void Add(Plant plant)
Parameters
Type Name Description
Plant plant

MarkDirty()

Declaration
public void MarkDirty()

OnDeserialized()

Declaration
public void OnDeserialized()

Remove(Plant)

Declaration
public void Remove(Plant plant)
Parameters
Type Name Description
Plant plant

Implements

IStorage
ISerializable
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾