mirror of
https://github.com/Ellpeck/TinyLifeExampleMod.git
synced 2024-11-22 20:08:34 +01:00
23 lines
620 B
C#
23 lines
620 B
C#
|
using System;
|
||
|
using Microsoft.Xna.Framework;
|
||
|
using TinyLife.Objects;
|
||
|
using TinyLife.World;
|
||
|
|
||
|
namespace ExampleMod {
|
||
|
public class CustomTable : Furniture {
|
||
|
|
||
|
public CustomTable(Guid id, FurnitureType type, int[] colors, Map map, Vector2 pos) : base(id, type, colors, map, pos) {
|
||
|
}
|
||
|
|
||
|
public override void OnAdded() {
|
||
|
base.OnAdded();
|
||
|
ExampleMod.Logger.Info("We were added at " + this.Position);
|
||
|
}
|
||
|
|
||
|
public override void OnRemoved() {
|
||
|
base.OnRemoved();
|
||
|
ExampleMod.Logger.Info("We were removed from " + this.Position);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|