15 Param1<string> param =
new Param1<string>(
"");
18 if (rpc_type ==
ERPCs.RPC_WRITE_NOTE)
37 if (rpc_type ==
ERPCs.RPC_WRITE_NOTE_CLIENT)
46 if (rpc_type ==
ERPCs.RPC_READ_NOTE)
80 m_SimpleText = MiscGameplayFunctions.SanitizeString(text);
85 float qty_per_char = 1.0;
87 pen.AddQuantity(-(qty_per_char * decrease));
The class that will be instanced (moddable)
Serialization general interface. Serializer API works with:
proto bool Read(void value_in)
protected ItemBase m_Paper
void OnRPC(PlayerIdentity sender, int rpc_type, ParamsReadContext ctx)
void InitNoteInfo(ItemBase pen=null, ItemBase paper=null)
protected string m_SimpleText
void DepleteWritingImplement(notnull ItemBase pen, string old_text, string new_text)
protected ItemBase m_WritingImplement
void WrittenNoteData(ItemBase parent)
void SetNoteText(string text)
bool GetNoteInfo(out ItemBase pen, out ItemBase paper)
proto native CGame GetGame()
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.
proto native int Length()
Returns length of string.